home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / misc / Indexing / MakeNeXTindex next >
Encoding:
Text File  |  1992-07-31  |  687 b   |  26 lines

  1. #!/bin/csh
  2.  
  3. #
  4. # A simple shell script that makes NeXT indexes of a directory with
  5. # the paths munged appropriately.
  6. #
  7. # Automatically makes a link for good measure too.
  8. #
  9.  
  10. set GopherHome = "/Gopher/IIC"
  11. set Data = "/Gopher/IIC/CSOM Information/MBA Program/Course Descriptions"
  12.  
  13. cd $GopherHome
  14.  
  15. mkdir /tmp/.index
  16. ln -s /tmp/.index "$GopherHome/.index"
  17. ixBuild -Vv -f text -i $GopherHome/.index/index.ixif "$Data"
  18. mv /tmp/.index/index.ixif "$Data/.index/"
  19. rm "$GopherHome/.index"
  20.  
  21. echo "Name=Index of this tree"  >>"$Data/.IndexLink"
  22. echo "Type=7"             >>"$Data/.IndexLink"
  23. echo "Path=7/$Data"         >>"$Data/.IndexLink"
  24. echo "Host=+"            >>"$Data/.IndexLink"
  25. echo "Port=+"            >>"$Data/.IndexLink"
  26.